package com.zm.damai.damaiindex.web.feign.impl;

import com.zm.damai.damaiindex.web.feign.OtherAction;
import com.zm.damai.entity.DmProduct;
import com.zm.damaicommon.Result;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@Component
public class OtherActionImpl implements OtherAction {
    @Override
    public String way() {
        return null;
    }

    List<Map<String ,Object>> hotsCache;

    @Override
    public List<Map<String, Object>> hot() {
        return hotsCache;
    }

    @Override
    public List<DmProduct> querySecKillProduct() {
        return null;
    }

    @Override
    public Result updateSeckillProduct(@RequestBody List<DmProduct> productList) {
        return null;
    }

    public void setHotsCache(List<Map<String, Object>> hotsCache) {                
        this.hotsCache = hotsCache;                                                
    }                                                                              
}
